package cn.liyao.web.model;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Timestamp;

@Table(name = "t_offline_messages")
@Data
@Entity
public class OfflineMessages {

    @Id
    @Column(columnDefinition = "VARCHAR(64)")
    private String fp;


    @Column(name = "message_type")
    private Integer type;


    @Column( columnDefinition = "TEXT")
    private String dataContent;

    @Column(name = "sender", columnDefinition = "VARCHAR(64)")
    private String from;

    @Column(name = "receiver",columnDefinition = "VARCHAR(64)")
    private String to;

    private Integer typeu;



    private Long timestamp;

}
